# P274
# 元祖
new_tuple = ("我是元祖元素一", "我是元祖元素2", 3, 3)
for name in new_tuple:
    print(name)

# P278
info_tuple = ("臭猪头", 26, 1.53)
print("名字是%s，年龄是%d，身高是%02f厘米" % info_tuple)

# P279
# 列表和元祖的转换
list_variable = list(info_tuple)
print(type(list_variable))
tuple_variable = tuple(list_variable)
print(type(tuple_variable))